package com.hqyj.pojo;

import java.util.Date;

/**
 * @author CY
 * @date 2022/09/16 17:16
 **/
public class Book {
    private Integer id;
    private String bname;
    private String author;
    private double price;
    private String chubanshe;
    private Date saletime;

    public Book() {
    }

    public Book(Integer id, String bname, String author, double price, String chubanshe, Date saletime) {
        this.id = id;
        this.bname = bname;
        this.author = author;
        this.price = price;
        this.chubanshe = chubanshe;
        this.saletime = saletime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getChubanshe() {
        return chubanshe;
    }

    public void setChubanshe(String chubanshe) {
        this.chubanshe = chubanshe;
    }

    public Date getSaletime() {
        return saletime;
    }

    public void setSaletime(Date saletime) {
        this.saletime = saletime;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", bname='" + bname + '\'' +
                ", author='" + author + '\'' +
                ", price=" + price +
                ", chubanshe='" + chubanshe + '\'' +
                ", saletime=" + saletime +
                '}';
    }
}
